package com.neusoft.entity;

import com.neusoft.annotation.ID;
import com.neusoft.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Table("stu.room")
@Data
@ToString
@Accessors(chain = true)  //链式写法
@NoArgsConstructor
@AllArgsConstructor
public class Room {
    @ID
    private Integer id;
    private Integer amount;
    private String type;
    private String location;
    private String address;
    private Integer area;
    private String bool;
    public Room(){}



    public Room(Integer id,Integer amount,String type,String location,String address,Integer area,String bool){
        this.id=id;
        this.amount = amount;
        this.type = type;
        this.location = location;
        this.address = address;
        this.area = area;
        this.bool = bool;
    }




    @Override
    public String toString() {
        return "Room [id=" + id + ", amount=" + amount + ", type=" + type
                + ", location=" + location + ", address=" + address + ", area="
                + area + ", bool=" + bool + "]";
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getAmount() {
        return amount;
    }
    public void setAmount(Integer amount) {
        this.amount = amount;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getLocation() {
        return location;
    }
    public void setLocation(String location) {
        this.location = location;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public Integer getArea() {
        return area;
    }
    public void setArea(Integer area) {
        this.area = area;
    }
    public String getBool() {
        return bool;
    }
    public void setBool(String bool) {
        this.bool = bool;
    }
}
